#pragma once

#include "tapi.h"
#include <extapi.h>
#include "tsp.h"

#define TAPI_API_LOW_VERSION   0x00020000
#define TAPI_API_HIGH_VERSION  0x00020000
#define EXT_API_LOW_VERSION    0x00010000
#define EXT_API_HIGH_VERSION   0x00010000

#define CAPS_BUFFER_SIZE    512

#define MAX_LOADSTRING 25

class CePhoneInfo
{
public:
	CePhoneInfo(void);
public:
	~CePhoneInfo(void);

	HRESULT GetPhoneNumber(LPTSTR szNumber, UINT cchNumber, UINT nLineNumber);
	CString GetPhoneIMSI();

private:
	DWORD GetTSPLineDeviceID(const HLINEAPP hLineApp, const DWORD dwNumberDevices, 
                         const DWORD dwAPIVersionLow, const DWORD dwAPIVersionHigh, 
                         const TCHAR* const psTSPLineName);
};
